import SpaceUnitConstructor from "./space_unit_constructor";

const SpaceUnit = (function() {
    function SpaceUnit() {}

    SpaceUnit.MILLIMETER = new SpaceUnitConstructor(-8, SpaceUnitConstructor.prototype._MILLIMETER.scale);
    SpaceUnit.CENTIMETER = new SpaceUnitConstructor(-4, SpaceUnitConstructor.prototype._CETIMETER.scale);
    SpaceUnit.DICIMETER = new SpaceUnitConstructor(-2, SpaceUnitConstructor.prototype._DICIMETER.scale);
    SpaceUnit.METER = new SpaceUnitConstructor(0, SpaceUnitConstructor.prototype._METER.scale);
    SpaceUnit.KILOMETER = new SpaceUnitConstructor(2, SpaceUnitConstructor.prototype._KILOMETER.scale);

    return SpaceUnit;
})();

export default SpaceUnit;
